﻿namespace 四
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入数字");
            int n = Convert.ToInt32(Console.ReadLine());
            Console.Write(n + "=");
            ysfj(n);
        }

        static void ysfj(int n)
        {
            int k = 2;
            while (n > 1)
            {
                if (n % k == 0)
                {
                    Console.Write(k);
                    n /= k;
                    if (n > 1)
                        Console.Write("*");
                }
                else
                {
                    k++;
                }
            }
        }

    }
}
